<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-department_id" class="control-label col-xs-12 col-sm-2">{:__('科室')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-department_id" data-rule="required" class="form-control selectpicker" name="row[pid]">
                {foreach name="parentList" item="vo"}
                <option data-type="{$vo.type}" value="{$key}" {in name="key" value=""}selected{/in}>{$vo.name}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('医生姓名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-doctor_name" class="form-control" name="row[doctor_name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('医院名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hospital_name" class="form-control" name="row[hospital_name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('联系电话')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-doctor_mobile" class="form-control" name="row[doctor_mobile]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('职位')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-doctor_position" class="form-control" name="row[doctor_position]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('荣誉标签')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-doctor_tags" class="form-control" name="row[doctor_tags]" type="text">*注意：多个用英文逗号,隔开。eg:知名医院,服务态度好,从业10年
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('省市区')}:</label>
        <div class='control-relative'>
            <input id="c-address" class="form-control" data-toggle="city-picker" name="row[address]" type="text" value="" />
        </div>

    </div>



    <br/>

    <div class="form-group">
        <label for="c-image" class="control-label col-xs-12 col-sm-2">{:__('头像')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" class="form-control" size="35" name="row[image]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>



    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('介绍')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-desc" class="form-control editor" rows="5" name="row[desc]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('擅长')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-goodat" class="form-control editor" rows="5" name="row[goodat]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('学术成果')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-get_results" class="form-control editor" rows="5" name="row[get_results]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
